<?php 

class Buyback_PslipController extends Zend_Controller_Action{
	
	const PERMISSION_DENIED = "You don't have permission to view this packing slip";
	protected $orderId;
	
	public function preDispatch(){
		$this->orderId = $this->getRequest()->_getParam('orderId');
	}
	
	public function indexAction(){
		
		$orderData = Doctrine_Model_Orders::getOrderPackingSlip($this->orderId);
		
		if(!$orderData){
			throw new Exception(self::PERMISSION_DENIED);
		}
		
		
	}
}